package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * @Title: LogBean
 * @Package: com.project.bean
 * @Description:
 * @Author: Liang-Xie
 */
@SuppressWarnings("all")
/**
 * 日志实体类
 */
@TableName("t_log")
public class LogBean {
    /**
     * 编号
     */
    @TableId(value = "pk_logId", type = IdType.AUTO)
    private Integer id;
    /**
     * 日期
     */
    @TableField(value = "l_date")
    private LocalDate date=LocalDate.now();
    /**
     * 内容
     */
    @TableField(value = "l_info")
    private String info;

    public LogBean() {
    }

    public LogBean(String info) {
        this.info = info;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "LogBean{" +
                "id=" + id +
                ", date=" + date +
                ", info='" + info + '\'' +
                "\n";
    }
}
